﻿@model PMSMVC.Models.Project

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@*<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/My97DatePicker/WdatePicker.js")" type="text/javascript"></script>*@

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>项目</legend>
        @*<br />
        
        <fieldset>
            <legend>项目信息</legend>*@
            <div class="editor-label">
                项目编号
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ProjectID)
                @Html.ValidationMessageFor(model => model.ProjectID)
            </div>

            <div class="editor-label">
                项目名称
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ProjectName)
                @Html.ValidationMessageFor(model => model.ProjectName)
            </div>            

            @*<div class="editor-label">
                录入时间
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.RecordTime, new { @onclick = "WdatePicker({dateFmt:'yyyy-MM-dd'})" })
                @Html.ValidationMessageFor(model => model.RecordTime)
            </div>

            <div class="editor-label">
                录入人
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.UserID)
                @Html.ValidationMessageFor(model => model.UserID)
            </div>
            </fieldset>

            <fieldset>
            <legend>产品信息</legend>
                <br />
                @Ajax.ActionLink("增加产品信息", "PartialCreate", "ProductType"
                , new AjaxOptions { UpdateTargetId = "AddProductType", HttpMethod = "GET", InsertionMode = InsertionMode.InsertAfter })
                <div id="AddProductType">                    
                </div>
            </fieldset>*@
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
